/**
 * 抽取action
 */

const {CHANGENAME,CHANGECOUNT}  =require('./actionTypes.js')

// action
const changeNameAction = (name) => {
    return {
        type: CHANGENAME,
        name,
    }
}

const changeCountAction = (count) => {
    return {
        type: CHANGECOUNT,
        count
    }
}

module.exports = {
    changeNameAction,
    changeCountAction
}